from wxauto import *
import pyautogui
import time
import run_logging as log


# 向某人发指定消息
def send_msg(msg, wx_name):
    wx = WeChat()
    time.sleep(1)
    wx.SendMsg(msg, f'{wx_name}')
    time.sleep(3)
    pyautogui.hotkey('alt', 'tab')


# def send_image():
#     time.sleep(1)
#     # 获取当前屏幕截图
#     pyautogui.hotkey('alt', 'a')
#     pyautogui.hotkey('enter')
#     time.sleep(1)
#     # 保存截图
#     wx.ChatWith('胜利丁')
#     time.sleep(1)
#     # 发送截图
#     pyautogui.hotkey('ctrl', 'v')  # 粘贴截图
#     pyautogui.press('enter')  # 发送截图"""
